
#ifndef _DRV_COMMON_H
#define _DRV_COMMON_H

#include <stdint.h>
#include <stddef.h>

#ifndef SYS_DEBUG_MESSAGE
#define SYS_DEBUG_MESSAGE(level, message)
#endif
#ifndef SYS_DEBUG_PRINT
#define SYS_DEBUG_PRINT(level, fmt, ...)
#endif


#ifndef SYS_DEBUG
#define SYS_DEBUG(level, message) SYS_DEBUG_MESSAGE(level, message)
#endif

#ifndef SYS_ERROR
#define SYS_ERROR(level, fmt, ...) SYS_DEBUG_PRINT(level, fmt, ##__VA_ARGS__)
#endif

#ifndef SYS_ERROR_PRINT
#define SYS_ERROR_PRINT(level, fmt, ...) SYS_DEBUG_PRINT(level, fmt, ##__VA_ARGS__)
#endif


typedef uintptr_t SYS_MODULE_OBJ;
typedef uintptr_t DRV_HANDLE;
typedef uintptr_t SYS_MODULE_INIT;
typedef unsigned short int SYS_MODULE_INDEX;
typedef uint32_t SYS_MODULE_ID;

#define DRV_HANDLE_INVALID (((DRV_HANDLE)-1))
#define SYS_MODULE_OBJ_INVALID ((SYS_MODULE_OBJ)-1)
#define DRV_CONFIG_NOT_SUPPORTED                    (((unsigned short) -1))

#endif //_DRV_COMMON_H

/*******************************************************************************
 End of File
*/
